<%@ page language="java" import="java.util.*" pageEncoding="GBK" contentType="text/html; charset=UTF-8"%>
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>s60sign</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
</head>
<body>
<%
Enumeration  names = request.getHeaderNames();
while(names.hasMoreElements()){
    String name = (String)names.nextElement();
    out.println("<b>" + name + ":</b>" + request.getHeader(name) + "<br/>");
}
Cookie[] cookies = request.getCookies();
if(cookies!=null){
	for(int i=0;i<cookies.length;i++){
		Cookie cookie = cookies[i];
		out.println("<br/><b style=\"color:red;\">cookieName:</b>"+cookie.getName()+"<br/>");
		out.println("<b style=\"color:red;\">cookieComment:</b>"+cookie.getComment()+"<br/>");
		out.println("<b style=\"color:red;\">cookieDomain:</b>"+cookie.getDomain()+"<br/>");
		out.println("<b style=\"color:red;\">cookieMaxAge:</b>"+cookie.getMaxAge()+"<br/>");
		out.println("<b style=\"color:red;\">cookiePath:</b>"+cookie.getPath()+"<br/>");
		out.println("<b style=\"color:red;\">cookieSecure:</b>"+cookie.getSecure()+"<br/>");
		out.println("<b style=\"color:red;\">cookieValue:</b>"+cookie.getValue()+"<br/>");
		out.println("<b style=\"color:red;\">cookieVersion:</b>"+cookie.getVersion()+"<br/>");
	}
}
%>
</body>
</html>
